﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SStuff.MetaEffects.Model
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
    public class HlslFunctionAttribute : Attribute
    {
        private readonly string _format;

        /// <summary>
        /// Create an instance of the HlslFunctionAttribute
        /// </summary>
        /// <param name="format">Format string example : tex2D({this}, {coord})</param>
        public HlslFunctionAttribute(string format)
        {
            _format = format;
        }

        public string Format
        {
            get { return _format; }
        }
    }
}
